package com.itheima.a04oopextendsdemo4;

public class JingLi extends Yuangong{
    private double jiangjin;

    public JingLi() {

    }

    public JingLi(String id, String name, double gongzi, double jiangjin) {
        super(id, name, gongzi);
        this.jiangjin = jiangjin;
    }

    public double getJiangjin() {
        return jiangjin;
    }

    public void setJiangjin(double jiangjin) {
        this.jiangjin = jiangjin;
    }

    @Override
    public void work() {
        System.out.println("管理他人");
    }

    @Override
    public void eat() {
        System.out.println("吃米饭");
    }
}
